package com.yanqu.road.entity.log;

import com.yanqu.road.entity.CkOrderBy;
import com.yanqu.road.entity.CkPartition;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

/**
 * 上clickhouse需要继承这个类
 */
@CkOrderBy("time")
@CkPartition("toYYYYMM(toDateTime(time/1000))")
public abstract class BaseLog extends BaseLogEntity {

    @FieldTypeAnnotation(desc = "日志生成时间")
    protected long time;

    public BaseLog() {
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }
}
